<?php
include 'db.php';
$order_id=$_REQUEST['orderId'];
$sql = "update dish_order set `status`='已结账',end_date=now() where id=$order_id";
$sqlq = $conn->prepare($sql);
$ok = $sqlq->execute();